package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.ProblemComment;
import cn.wolfcode.luowowo.comment.domain.ProblemComment;
import cn.wolfcode.luowowo.comment.query.ProblemCommentQuery;
import cn.wolfcode.luowowo.comment.query.ProblemCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * 问题回答接口
 */
public interface IProblemCommentService {
    /**
     * 增加
     * @param problemComment
     */
    ProblemComment save(ProblemComment problemComment);

    /**
     * 分页
     * @param qo
     * @return
     */
    Page query(ProblemCommentQuery qo);

    /**
     * 查指定问题回答条数
     * @param problemId
     * @return
     */
    long getCount(Long problemId);


}
